/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/3/29
 * Time: 21:21
 * Description: No Description
 */
class OutClass {

    public int doat1 = 10;
    public int doat2 = 20;
    public OutClass() {
        System.out.println("这是一个外部类的构造方法");
    }

     class SetClass {
        public int doat3 = 30;
        public int doat4 = 40;

        public SetClass() {
            System.out.println("这是一个内部类的构造方法");
        }

        public void set() {
            System.out.println("这是一个内部类的方法");
        }
    }


}
public class TestDemo {

    public static void main(String[] args) {
        OutClass outclass = new OutClass();
        OutClass.SetClass setclass = outclass.new SetClass();
    }
    static int a = 10;
    public  static  void seat() {
        a=20;
        System.out.println(a);
    }
    public static void main1(String[] args) {
        seat();
    }

}